<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cmsNews-edit" object="${cmsNews}">
            <input id="contentId" name="contentId"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">内容编码：</label>
                <div class="col-sm-8">
                    <input id="contentCode" name="contentCode" value="${contentCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">站点编号：</label>
                <div class="col-sm-8">
                    <input id="siteId" name="siteId" value="${siteId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">栏目ID：</label>
                <div class="col-sm-8">
                    <input id="catId" name="catId" value="${catId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">发布日期：</label>
                <div class="col-sm-8">
                    <input id="publishDate" name="publishDate" value="${publishDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">关闭日期：</label>
                <div class="col-sm-8">
                    <input id="offDate" name="offDate" value="${offDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">优先级：</label>
                <div class="col-sm-8">
                    <input id="priority" name="priority" value="${priority}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否包含图片：</label>
                <div class="col-sm-8">
                    <input id="isWithImage" name="isWithImage" value="${isWithImage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">浏览总数：</label>
                <div class="col-sm-8">
                    <input id="views" name="views" value="${views}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">评论总数：</label>
                <div class="col-sm-8">
                    <input id="comments" name="comments" value="${comments}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">顶：</label>
                <div class="col-sm-8">
                    <input id="diggs" name="diggs" value="${diggs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">得分：</label>
                <div class="col-sm-8">
                    <input id="score" name="score" value="${score}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">收藏次数：</label>
                <div class="col-sm-8">
                    <input id="favorites" name="favorites" value="${favorites}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态(0:发起者,1-9:审核中,A:已发布,B:草稿,C:投稿,D:退稿,E:采集,F:待发布,G:已过期,X:回收站,Z:归档)：</label>
                <div class="col-sm-8">
                    <input id="checkStatus" name="checkStatus" value="${checkStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">HTML状态(0:未开启,1:待生成,2:待更新,3:已生成)：</label>
                <div class="col-sm-8">
                    <input id="htmlStatus" name="htmlStatus" value="${htmlStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否推荐0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isRecommend" name="isRecommend" value="${isRecommend}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否置顶0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isTop" name="isTop" value="${isTop}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否首页显示0、否1、是：</label>
                <div class="col-sm-8">
                    <input id="isShow" name="isShow" value="${isShow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态:0、删除 1、正常 2、禁止：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" value="${status}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建者：</label>
                <div class="col-sm-8">
                    <input id="createBy" name="createBy" value="${createBy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input id="createDate" name="createDate" value="${createDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">更新者：</label>
                <div class="col-sm-8">
                    <input id="updateBy" name="updateBy" value="${updateBy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <input id="updateDate" name="updateDate" value="${updateDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" value="${remark}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <%@ include file="/WEB-INF/views/include/footer.jsp"%>
    <script type="text/javascript">
		var prefix = ctx + "cms/cmsNews"
		$("#form-cmsNews-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-cmsNews-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
